<!DOCTYPE html>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ page contentType="text/html;charset=utf-8"%>
<c:set var="ctx" value="${pageContext.request.contextPath}" />
<html>
<head>
    <meta charset="utf-8" >
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <title>MMS-OA</title>
    <link rel="stylesheet" href="../layui/css/layui.css">
</head>
<body class="layui-layout-body">
<div class="layui-layout layui-layout-admin">
    <div class="layui-header">
        <div class="layui-logo" style="font-size: large">湖南信息学院</div>

        <ul class="layui-nav layui-layout-right">
            <li class="layui-nav-item">
                <a href="javascript:;">
                    <img src="http://t.cn/RCzsdCq" class="layui-nav-img">${muser.uname}
                </a>
                <dl class="layui-nav-child">
                    <dd><a href="">基本资料</a></dd>
                    <dd><a href="">安全设置</a></dd>
                </dl>
            </li>
            <li class="layui-nav-item"><a href="">退出</a></li>
        </ul>
    </div>

    <div class="layui-side layui-bg-black">
        <div class="layui-side-scroll">
            <!-- 左侧导航区域（可配合layui已有的垂直导航） -->
            <ul class="layui-nav layui-nav-tree"  lay-filter="test">
                <li class="layui-nav-item ">
                    <a class="" href="${ctx}/Login/add">新增成员</a>
                </li>
                <li class="layui-nav-item"><a href="${ctx}/Login/chaxun">信息查询</a> </li>

                <li class="layui-nav-item"><a href="${ctx}/Login/send">消息发布</a></li>
                <li class="layui-nav-item"><a href="${ctx}/Login/shenhe">审核</a></li>
            </ul>
        </div>
    </div>

    <div class="layui-body">
        <!-- 内容主体区域 -->
        <fieldset class="layui-elem-field layui-field-title" style="margin-top: 20px;">
            <legend>最新消息</legend>
        </fieldset>

        <div style="padding: 20px; background-color: #F2F2F2;">
            <div class="layui-row layui-col-space15">
                <div class="layui-col-md6">
                    <div class="layui-card">
                        <div class="layui-card-header">学校社联</div>
                        <c:forEach items="${theam.anymessages}" var="message">
                            <table class="layui-table">
                                <colgroup>
                                    <col width="50">
                                    <col width="100">
                                </colgroup>
                                <thead>
                                <tr>
                                    <th>主题：${message.theme}</th>
                                    <th>消息类型：<c:if test="${message.type eq '1'}" >通知</c:if><c:if test="${message.type eq '2'}" >活动</c:if> </th>

                                </tr>
                                </thead>
                                <tbody>
                                <tr>
                                    <td>时间：${message.time}</td>
                                    <td>地点:${message.site}</td>
                                </tr>
                                <tr>
                                    <td colspan="2" rowspan="2">内容：${message.content}</td>
                                </tr>
                                </tbody>
                            </table>
                        </c:forEach>
                        <form class="layui-form layui-form-pane"
                              style="padding-top: 15px;padding-bottom: 7px;margin-left: 15px;margin-right: 15px;margin-bottom: 0px;border-bottom-width: 15px;"
                              action=""
                              lay-filter="example1">


                        </form>
                    </div>
                </div>
                <div class="layui-col-md6">
                    <div class="layui-card">
                        <div class="layui-card-header">社团消息</div>
                        <div class="layui-card-body">
                            <br>
                            <c:forEach items="${anmessage}" var="message">
                                <table class="layui-table">
                                    <colgroup>
                                        <col width="50">
                                        <col width="100">
                                    </colgroup>
                                    <thead>
                                    <tr>
                                        <th>主题：${message.theme}</th>
                                        <th>消息类型：<c:if test="${message.type eq '1'}" >通知</c:if><c:if test="${message.type eq '2'}" >活动</c:if> </th>

                                    </tr>
                                    </thead>
                                    <tbody>
                                    <tr>
                                        <td>时间：${message.time}</td>
                                        <td>地点:${message.site}</td>
                                    </tr>
                                    <tr>
                                        <td colspan="2" rowspan="2">内容：${message.content}</td>
                                    </tr>
                                    </tbody>
                                </table>
                            </c:forEach>
                        </div>
                    </div>
                </div>

            </div>
        </div>


    </div>

    <div class="layui-footer">
        <!-- 底部固定区域 -->
        © 社联管理系统 - MMS-OA
    </div>
</div>
<script src="../js/jquery-1.11.3.min.js"></script>
<script src="../layui/layui.all.js"></script>
<script>
    var form = layui.form
    var data=${loginVo};

    var json=data.flag;
    console.log(json);
    form.val('exmple',{

    });

    <%--var str=${loginVo.muser.uid};--%>
    //JavaScript代码区域
//    layui.use('element', function(){
//        var element = layui.element;
//
//    });
</script>
</body>
</html>